package com.lzw.security.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author ：冯涛滔
 * @date ：Created in 2020-3-28 20:21
 * @description：商品
 * @modified By：
 * @version:
 */
@Data
@Component
@Scope(value = "prototype")
@Accessors(chain = true) //这个注解可以使这个类的set方法返回当前对象
public class Commodity implements Serializable,Parent {
    private Integer id;
    private String name;
    private BigDecimal price;
    private String url;
    private Integer quantity; //销售量
    private Integer putaway; //是否上架
    private String describe;//描述
    private Integer commodity_category_id;//类别

    private List<Accessory> list;
}
